refactor(backend): decompose scanner.py orchestrator (#2364)#2474
Merged
mrveiss merged 1 commit intoDev_new_guifrom Mar 26, 2026
Merged
refactor(backend): decompose scanner.py orchestrator (#2364)#2474mrveiss merged 1 commit intoDev_new_guifrom
mrveiss merged 1 commit intoDev_new_guifrom
Conversation
Split scanner.py (999 lines) into focused modules: - indexing_executor.py (64 lines) — thread pool singleton + async dispatch - file_pipeline.py (335 lines) — file processing pipeline (analysis, storage, iteration) - indexing_phases.py (226 lines) — ChromaDB init, scan, store orchestration - subprocess_runner.py (175 lines) — subprocess launch + watchdog supervision scanner.py reduced to 425-line thin orchestrator with backward-compat re-exports. All public APIs preserved.
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Decomposed
scanner.py(~999 lines) into 4 focused modules:indexing_executor.pyfile_pipeline.pyindexing_phases.pysubprocess_runner.pyscanner.pyreduced to 425 lines (was 999) — a thin orchestrator with backward-compat re-exports. All public APIs preserved.Closes #2364
Test plan